home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / tsetguid.zip / TEA / SET / SAMPLE / SPINNERE.JAV < prev    next >
Text File  |  1997-02-27  |  1KB  |  41 lines

  1. /*
  2.  * Copyright (c) 1996-1997, InetSoft Technology Corp, All Rights Reserved.
  3.  *
  4.  * The software and information contained herein are copyrighted and 
  5.  * proprietary to InetSoft Technology Corp. This software is furnished 
  6.  * pursuant to a written license agreement and may be used, copied, 
  7.  * transmitted, and stored only in accordance with the terms of such 
  8.  * license and with the inclusion of the above copyright notice. Please 
  9.  * refer to the file "COPYRIGHT" for further copyright and licensing 
  10.  * information. This software and information or any other copies 
  11.  * thereof may not be provided or otherwise made available to any 
  12.  * other person. 
  13.  */
  14. package tea.set.sample;
  15.  
  16. import java.applet.*;
  17. import java.awt.*;
  18. import tea.set.*;
  19.  
  20. /**
  21.  * This is a demo applet to show using tea.set.Spinner to build a
  22.  * simple data entry form with data validation.
  23.  *
  24.  * @see Spinner
  25.  * @version 1.3, 01/31/97
  26.  * @author InetSoft Technology Corp
  27.  */
  28. public class SpinnerEntry extends Applet {
  29.    public void init() {
  30.       String[] names = {"Grace", "John", "Karen", "Eillen", "Christ"};
  31.       add(new Label("First Name"));
  32.       add(new Spinner(names, true));
  33.       
  34.       add(new Label("Last Name"));
  35.       add(new Spinner(Tool.tokenize("Lee,Clinton,Rich,King", ",")));
  36.       
  37.       add(new Label("Age"));
  38.       add(new Spinner(18, 65));
  39.    }
  40. }
  41.